package com.travelparadise.tests;

import org.springframework.context.ApplicationContext;

import com.travelparadise.dao.VolDao;
import com.travelparadise.domain.Ville;
import com.travelparadise.formbeans.VilleBean;

import junit.framework.TestCase;

public class TestVilleBean extends TestCase {
	
	private VilleBean villeBean;

	protected void setUp() throws Exception {
		ApplicationContext springContext = SpringContextForTest.getSpringContext();
		this.villeBean = (VilleBean) springContext.getBean("villeBean");
		
	}
	
	public void testGetAllVilles(){
		
		for(Ville v : villeBean.getAllVilles()){
			System.out.println(v.getNom());
		}
		
	}
}
